using System;

namespace Kollektiv.Web.Mvc
{
	/// <summary>
	/// This attribute defines a method as a controller action
	/// </summary>
	public class ControllerActionAttribute:Attribute
	{
		/// <summary>
		/// Gets or sets the mehtod to execute before the action.
        /// If this method returns not null, the action will not be executed anymore.
        /// The if the first executed handler returns not null, all others will not be executed anymore.
		/// </summary>
		public string PreActionHandler { get; set; }

        /// <summary>
        /// Gets or sets the mehtod to execute after an action.
        /// If this method returns not null, the action return value will be overwritten.
        /// /// The if the first executed handler returns not null, all others will not be executed anymore.
        /// </summary>
		public string PostActionHandler { get; set; }
	}
}

